package com.xb.loan.cashier.biz.dao;


import com.xb.loan.cashier.biz.dao.bean.CashierPlatPaytype;
import com.xb.loan.util.mybatis.MyBatisRepository;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface CashierPlatPaytypeDao {
	int deleteByPrimaryKey(String platChannelId);
	
	int deleteByPlatId(String platId);

	int insert(CashierPlatPaytype record);

	int insertSelective(CashierPlatPaytype record);

	CashierPlatPaytype selectByPrimaryKey(String platChannelId);

	int updateByPrimaryKeySelective(CashierPlatPaytype record);

	int updateByPrimaryKey(CashierPlatPaytype record);
	
	CashierPlatPaytype queryEntity(Map<String, Object> params);

	/**
     * 根据平台id和第三方类型查询主键
     * @param params platId
     *  paychannelType
     */
    CashierPlatPaytype selectByPlatAndChannelType(Map<String, Object> params);
    /**
     * 根据平台id和第三方类型集合查询主键
     * @param params platId
     *  paychannelType
     */
    List<CashierPlatPaytype> selectByPlatAndChannelTypeArray(Map<String, Object> params);
    
    List<String> queryByPlatId(String platId);
}